package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.system.domain.SysChatRoom;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 聊天房间视图对象 sys_chat_room
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysChatRoom.class)
public class SysChatRoomVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 会话最新消息ID
     */
    @ExcelProperty(value = "会话最新消息ID")
    private Long lastMsgId;

    /**
     * 0:否、1：是
     */
    @ExcelProperty(value = "0:否、1：是")
    private boolean showAll;

    /**
     * 房间类型：0：单聊、1：群聊
     */
    @ExcelProperty(value = "房间类型：0：单聊、1：群聊")
    private Integer roomType;

    /**
     * 会话内消息最后更新的时间(只有普通会话需要维护，全员会话不需要维护)
     */
    @ExcelProperty(value = "会话内消息最后更新的时间(只有普通会话需要维护，全员会话不需要维护)")
    private Date activeTime;

    /**
     * 额外消息
     */
    @ExcelProperty(value = "额外消息")
    private String extraMsg;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

}
